apiVersion: apps/v1beta1
kind: Deployment
metadata:
  name: test-cicd
  namespace: blue
  labels:
    k8s-app: test-cicd
spec:
  replicas: 1
  selector:
    matchLabels:
        k8s-app: test-cicd
  template:
    metadata:
     labels:
       k8s-app: test-cicd
    spec:
     containers:
     - name: test-cicd
       image: {IMAGE_URL}:{IMAGE_TAG}
       imagePullPolicy: IfNotPresent
       ports:
       - containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
  name: test-cicd
  namespace: blue
  labels:
    k8s-app: test-cicd
spec:
  type: NodePort
  ports:
  - port: 8080
    nodePort: 31011
  selector:
    k8s-app: test-cicd
